# -*- coding: utf-8 -*-
"""
Created on Mon Apr 15 11:49:44 2019

@author: Administrator
"""

import sys,os

def run_speaker(path,modelname):
    cmd='python speaker-recognition.py -t enroll -i "'
    for category in  os.listdir(path):
        cmd = cmd  + path + category+'/ '
    cmd = cmd + '*.wav " -m ' + modelname 
    os.system(cmd)
            
            
run_speaker(sys.argv[1],sys.argv[2])


